import java.util.Arrays;
import java.util.Scanner;

/**
 * 
 * 
 * @author Administrator
 * 
 */
public class P2388 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] arr = new int[10000 + 1];
		int size;
		size = in.nextInt();

		for (int i = 0; i < size; i++) {
			arr[i] = in.nextInt();
		}
		insertSort(arr,size);
		
		System.out.println(arr[size/2]);

	}

	public static void insertSort(int[] arr, int len) {
		int i, j;
		int target;
		for (i = 1; i < len; i++) {
			j = i;
			target = arr[i];
			while(j>0 &&target<arr[j-1]) {
				arr[j]=arr[j-1];
				j--;
			}
			arr[j]=target;
		}
	}

}
